package com.car.order.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.car.order.dto.serviceOrderInfo.ServeOrderDetailDto;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author 董旭
 * @since 2024-08-28
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName(value = "service_order_info", autoResultMap = true)
public class ServiceOrderInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订单id
     */
    @TableId(value = "serve_order_id", type = IdType.AUTO)
    private String serveOrderId;

    /**
     * 服务id
     */
    @TableField("serve_id")
    private Integer serveId;

    /**
     * 门店id
     */
    @TableField("stores_id")
    private Integer storesId;

    /**
     * 下单人id
     */
    @TableField("user_id")
    private Integer userId;

    @TableField("user_phone")
    private String userPhone;

    /**
     * 订单生成时间
     */
    @TableField("order_creat_time")
    private String orderCreatTime;

    /**
     * 订单付款时间
     */
    @TableField("order_pay_time")
    private String orderPayTime;

    /**
     * 订单价格
     */
    @TableField("money")
    private BigDecimal money;

    /**
     * 订单详情
     */
    @TableField(value = "order_detail", typeHandler = JacksonTypeHandler.class)
    private ServeOrderDetailDto orderDetail;

    /**
     * 核验码
     */
    @TableField("verification_code")
    private String verificationCode;

    /**
     * 订单状态0待支付 1待服务 2取消支付 3待售后 4退款成功  5已完成
     */
    @TableField("order_state")
    private Integer orderState;

    /**
     * 评分
     */
    @TableField("score")
    private Integer score;
}
